<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LIHAIYAN</title>
    <link rel="stylesheet" href="./css/work.css">
    <script src="./js/jquery.js"></script>
    <audio controls="controls" hidden="hidden" autoplay="autoplay" loop="loop">
        <source
        src="纯纯的夏天.mp3"
        type="audio/mpeg"
        />
        </audio>
</head>

<body>
    <div class="container">
        <div class="logo">
            <img src="./img/logo.png" alt="">LIHAIYAN
        </div>
        <div class="nav">
            <ul>
                <li><a href="index.html">About</a></li>
                <li><a href="works.html">Works</a></li>
                <li><a href="contact me.html">Contact me</a></li>
            </ul>
        </div>
    </div>

    <div class="header">
        <div class="picture">
            <img src="./img/首页.jpg" alt="">
        </div>
        <div class="in">
            <h1>Slide down,please.</h1>
            <p class="a">Take a look at my work with me.</p>
            <a href="#one"><img class="btn" src="./img/下滑.png" alt=""></a>
        </div>

    </div>
    <div class="works">
        <div class="first">
            <div class="one">
                <p id="one">Photography</p>
            </div>
            <div class="p1">
                <div class=" items">
                    <img src="./img/蓝花.jpg" alt="" height="160px"></div>
                <div class="D items">
                    <img src="./img/叶子.jpg" alt="" height="160px "></div>
                <div class="E items">
                    <img src="./img/玫瑰.jpg" alt="" height="160px "></div>
                <div class="F items">
                    <img src="./img/石头.jpg" alt="" height="160px "></div>

            </div>
        </div>
        <div class="second">
            <div class="two">
                <p>Drawing
                </p>
            </div>
            <div class="p2">
                <div class="items">
                    <img src="./img/临摹女孩.jpg" alt="" height="160px"></div>
                <div class="A items">
                    <img src="./img/花.jpg" alt="" height="160px"></div>
                <div class="B items">
                    <img src="./img/女.jpg" alt="" height="160px "></div>
                <div class="C items">
                    <img src="./img/男.jpg" alt="" height="160px "></div>
            </div>
        </div>
        <div class="first">
            <div class="three">
                <p>Desigh</p>
            </div>
            <div class="p3">
                <div class="items">
                    <img src="./img/界面设计.jpg" alt="" height="160px"></div>
                <div class="G items">
                    <img src="./img/画册.jpg" alt="" height="160px "></div>
                <div class="H items"><img src="./img/海.jpg" alt="" height="160px "></div>

            </div>

        </div>
    </div>
    <div class="footer">
        <div class="left">
            <img src="./img/logo.png" alt="" align=left height="120px ">
            <h2 class="HAI">LIHAIYAN</h2>
        </div>
        <div class="right">
            <ul>
                <li><a href="index.html">About</a></li>
                <li><a href="#one">Works</a></li>
                <li><a href="contact me.html">Contact me</a></li>
            </ul>
        </div>
        <div class="copyright">Li Haiyan all rights reserved.</div>
    </div>
</body>
<script>
    $(function() {
        $(".items").click(function() {
            console.log($(this))
            var imgsrc = $(this).find("img").attr("src");
            console.log(imgsrc);
            var newList = $(`<div class="madel">
                               <div class="layout">
                                   <span class="close">
                                   X
                               </span>
                                   <div class="picshow">
                                       <img src="${imgsrc}" alt="">
                                   </div>
                                                  </div>
                                     </div>`);

            $("body").css({
                overflow: "hidden",
                marginRight: 17,
            });
            $("body").append(newList);
            newList.hide().fadeIn(300);
        });
        $("body").on("click", ".close", function() {
            $(".madel").fadeOut(300, function() {
                $(this).remove();
                $("body").css({
                    overflow: "auto",
                    marginRight: 0,
                });
            });
        });
    });
</script>

</html>